package com.gdk.ksoft.data.entry.tables;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.NotNull;
import com.lidroid.xutils.db.annotation.Table;
import com.lidroid.xutils.db.annotation.Unique;

/**
 * Created by hel on 2014-12-01.
 * 销售单商品表
 */
@Table(name = "xiaoshoudan_sp")
public class SaleGoodsTable {

    /**
     * 销售单商品ID
     */
    @Unique
    @NotNull
    @Id(column = "id")
    public int id;

    /**
     * 客户ID
     */
    @Column(column = "kh_id")
    public int kh_id;


    /**
     * 送货地址ID
     */
    @Column(column = "khdz_id")
    public int khdz_id;


    /**
     * 销售单ID - 单据号
     */
    @Column(column = "xsd_id")
    public String xsd_id;

    /**
     * 商品ID
     */
    @Column(column = "sp_id")
    public int sp_id;

    /**
     * 条码
     */
    @Column(column = "tm")
    public String tm;


    /**
     * 商品名称
     */
    @Column(column = "mc")
    public String mc;


    /**
     * 商品规格
     */
    @Column(column = "gg")
    public String gg;

    /**
     * 销售单位
     */
    @Column(column = "xsdw")
    public String xsdw;

    /**
     * 核算单位
     */
    @Column(column = "hsdw")
    public String hsdw;


    /**
     * 换算关系
     */
    @Column(column = "hsgx")
    public int hsgx;

    /**
     * 销售单位价
     */
    @Column(column = "xsyj")
    public double xsyj;


    /**
     * 金额
     */
    @Column(column = "yfje")
    public double yfje;

    /**
     * 零售价
     */
    @Column(column = "bzlsj")
    public double bzlsj;

    /**
     * 标准销售单位价
     */
    @Column(column = "bzxsdwj")
    public double bzxsdwj;


    /**
     * 销售单位数量
     */
    @Column(column = "xsdwsl")
    public int xsdwsl;

    /**
     * 销售单位散数
     */
    @Column(column = "xsdwss")
    public int xsdwss;

    /**
     * 核算单位数量
     */
    @Column(column = "hsdwsl")
    public int hsdwsl;

    /**
     * 商品类型
     */
    @Column(column = "lx")
    public int lx;


    /**
     * 产生时间
     */
    @Column(column = "zdsj")
    public String zdsj;

    /**
     * 保质期
     */
    @Column(column = "bzq")
    public int bzq;

    /**
     * 生产日期
     */
    @Column(column = "csrq")
    public String csrq;

    /**
     * 备注信息
     */
    @Column(column = "bz")
    public String bz;

    /**
     * 单机标识,0-本地，1-网络
     */
    @Column(column = "djbz",defaultValue = "0")
    @NotNull
    public int djbz;


}
